package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.FhkhdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface FhkhdService extends BaseService<FhkhdBean> {

	FhkhdBean getFhkhdBeanById(String id) throws Exception;
	
	void removeFhkhdBeanById(String id) throws Exception;
	
	void removeFhkhdBeanByIds(String ids) throws Exception;
	
	FhkhdBean saveFhkhdBean(FhkhdBean crm) throws Exception;
	
	FhkhdBean updateFhkhdBean(FhkhdBean crm) throws Exception;
	
	Page<FhkhdBean>  findFhkhdBeanByCond(FhkhdBean bean,
			Page<FhkhdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveFhkhdBeanExt(String sql) throws Exception;

	String findFhkhdBeanExtCreate(String tableName) throws Exception;

	String findFhkhdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findFhkhdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasFhkhdBeanExtData(String tableName, String id)
			throws Exception;
}